<!-- Example table --> 
<div class="container_12"> 
    <div class="module">
	    <h2><span>Add Wedding Package</span></h2>
		<div class="module-body">
            <div style="margin-top:13px;">
        	   <?php 
        	   if(isset($errMsg)){?>
            	   <span class="notification"><?php  echo $_MESSESGE[$errMsg];?></span>
        	   <?php  }?>
            </div>
        	<form name="admin_frm" id="admin_frm" action="" method="post" enctype="multipart/form-data">
        	   <p>                                
    				<label>Select Venue</label>
    				<?php    
    				$venues = Venue::getVenues();
                    if( $venues ){  
    					echo '<select class="input-short" name="venue">';
    					$selval = $_POST['venue'];
    					foreach( $venues as $row )  {
    						$sel = $selval==$row['id'] ? 'selected' : '';
    				    	echo '<option value="'.$row['id'].'" '.$sel.'>'.$row['display_name'].'</option>';
    					}   
    					echo '</select>';
    				}?>
    		    </p>
                <p>
    				<label>From Date</label>
    				<input name="start_date" type="text"  class="inputText" value="<?php  $_POST['start_date']?>" size="10"/><a href="javascript:showCal('Calendar1')"><img src="<?php   echo _SITE_ADMIN_URL_;?>images/calendar.jpg" alt="Click Here to Pick up the date" border="0" /></a>
    				<!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                </p>
                <p>
    				<label>To Date</label>
    				<input name="end_date" type="text"  class="inputText" value="<?php $_POST['end_date']?>" size="10"/><a href="javascript:showCal('Calendar2')"><img src="<?php  echo _SITE_ADMIN_URL_;?>images/calendar.jpg" alt="Click Here to Pick up the date" border="0" /></a>
    				<!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                </p>
                <fieldset>
                		<input class="submit-green" type="submit" name="submit" value="Submit" /> 
                	 <input class="submit-gray" type="button" value="Cancel" onclick="javascript: window.location='<?php  echo _SITE_ADMIN_URL_?>'+'wedding/wedding_mng.php';" />
                </fieldset>
        	</form>
        </div> <!-- End .module-body -->
    </div>  <!-- End .module -->
</div>
<div style="clear:both;"></div>

<script language="javascript">
		addCalendar("Calendar1", "Select Date", "start_date", "admin_frm");
		addCalendar("Calendar2", "Select Date", "end_date", "admin_frm");
setFormat("yyyy-mm-dd");
</script>                

<script type="text/javascript">
	$().ready(function() {
	   $("#admin_frm").validate({
            rules: {
                start_date: {
                	required: true,
                	date: true
                },
                end_date: {
                	required: true,
                	date: true
                },
                messages: {
                	start_date: "Please select start date",
                	end_date: "Please select end date"            
                }
            }
		});
	});
</script>